In reply to Norman21.

Thanks Norman!

I've corrected the code.