Removed usage of async module and fixed a state-machine logic issue.