Added primitive php handling;