Cleaned up all PHP warnings