Used mixin to implement AOP style.