Implemented rudimentary AOP style interceptions.