Have a look at this post linked hereafter, I think it matches your idea almost perfectly.
Cheers Philipp