Add response handling. Close #175.