Executing a code asynchronously