Added name to authorize function.