Added functionality to debug mode - bypass authentication