Added if name main block.