Added autoreset functionality, functionally complete