Optimized imports, added Asynchronous task execution [not tested yet] and reformatted code