Added exit method