Added exec execution, fixed stdin stdout