Tidying up promises.