Updated socket io, working with loops.
Support stop command