Added exit to end of execution