Brendan

Are you just setting all the cells with a value not equal to 0 to 1?