Added resetting of sticking and following