Do it without an ugly goto.