Added debugmenu and optional settings