Refactoring code with promises
Removing ; that crashes the mail watcher