MOG implementation