Merge palmer stimuli function

Moves the palmer stimuli generation function out of the utils method and into the plugin.