Add extra checks to procedure `fmt`.