Added support for exec with greater than 3 arguments