Revert Main to initial state