Add return statements on functions returning asynchronously to avoid bugs.