Adding exit method