Added initial authentication code