Added macro for global moc