Illegal operation detected, this script will now terminate