Muthu FUCK'N WORKS.
Code slightly cleaned up.