in reply to Illegal Modulus zero

Yes nevermind :-) key should be keys Caught that the 3rd time I checked my code :-)