OK, wanted to be sure I hadn't missed anything. I copied the source of a existing one and removed the variable stuff. Been pasting that and then adding the details.