Added reset, resetAll and resetToOrigin functionds