Finally finished debugging everything good