Use return rather than exit