Simplified the php