Implemented the running mode.