Optimized the way cell creates references to each other
Added debugging output