Added 'Exit' header, moved around some lines.