Change exit from 1 to 0