Added check to see if user is running as root