Big_Dave #1 Shows you how much I know! Thanks Emmett, moving to functions appears to have fixed the problem.