Updated script with new operator features