Insert AOP for debug