Modified cactus generation