Fixed session errors. Added status of task to response.