Adding methods used by cactus_realign