Some cleanup and response abstraction.