Used promise().done() for better method chaining

Better alternative to setTimeout