Fast reset rewrite

Fix #263