Updating script to reference plugin input dynamically