Script needed proper scaping of variables