Changed from using synchronized method to calling a Sync task from the Async task