Changed channelsTobeReferenced to rereferencedChannels