Alternative to kill old and sub process

Refactor functions names