Added elapsed time to async_result. Cleaned up code.