Changin processing task to asynchronous