Refactor Io/main using Async