Fixed typo
Added promises in File