Working 'reset' implementaiton.