Avoids extra setTimeout call in Promises