Added "exit" and commented hgcustom and spawn check