Added a reset func.