Made async versions of main functions