Manage asynchronous task using Promises and Deferred objects.