Implemented Async Tasks and a callback interface