Converted reset functionality to be part of a java forked process. Implemented simple class to easily pass state to forked process.