Make resetting work