Added authentication routines.