Return from func instead of break from select.