editFile function is added.
Regular channel is replaced with STM channel.
tryNextEvent is added.