Added in error handling for the rest of the promises.