Better implementation of Async tasks. Misc bug fixes. More fixes coming.