Added hook for checking if the mode has changed plus calling netty workflow