Work on intensity function glitch; change to .yaml file for parameters.