Extracted async methods into its own file.