Add a template funtion to set PC options.