Added reset functionality, removed autolearning