Adding support to exec command in system class.