Implemented modifyState method.