Reformatted!
Rewritten for compatibility with PHP canon