Semantics. Refactorings. Make it PHP 5.3 compatible.