Add exit command via new function