Options 1, 3 and 4 and exit routines working