Implement reset. Close #7