Fixing some syntax and remove var_dump