Add a mode hook to allow custom settings.