Added queue based logging, proper error responses.