Added Anji's design pattern to M4