Initial subprocess code