Slightly more parameterizable script