Add if name main block.