Helper that also resets everything.