Added user check to script