Reset needed to be a function