in reply to Merge two scripts into one
It's a shame you didn't just show us the merged script (rather than the two separate ones). We might have been able to help you find the problem.