Added debug statements in server