Added authentication method. #2