Changed Thread for Async, fixed some bugs.