Cleaned PHP code