Debugged stuff, added setting class