Error was obvious on reflection. That is what you get when you use someone elses template. Need to read through everything a little more next time!