Bug 155

Be more compatible with ree; also seems unnecessary here to use each_with_index...