Probably not resetting state, should add a unit test
Probably not resetting state, should add a unit test