Procedures with exit statement