Simplified some of the server logic.
Made the response regex less general.