This is pretty cool - I could use this in some other places too :)