Rudimentary response handling. Needs lots of work