Worked on the exit select statement