Added reset function

latest commit e3b87b6648
@Jeroendg authored