Any reason for the backwards increment of k?  versus something like k++?