Removed handlers and fiddled with things in auth functions so it will comile.