Move reset out of globals