Added an option for user to set 'sendImmediately' boolean for authentication.