Compound referencing system implemented. Selection bug not fixed.