Adding code to handle meld format