+1 for reinventing a few wheels