Added promise rejection.