Removed $'s server side and changed exit to quit