User blog comment:Stpehen/Borrowed some coding from community central/@comment-1917218-20120310154216

Fail, it kind of worked...