Added missing reset function