Removed reset function until better implementation