Added a hook to catch "ace start" and "ace end"