Added debugging in php