I'm reading your code Christopher. What if the maximum coeffisient in the matix is less than zero. Wouldn't your code then return 0 instead of the maximum? -ÃÂystein