Made it check when its the first time. And changed Exit function.