Simplified code by using the "async" module.
Changed logging
Beautified logging