Removed unecessary exit()