Extended the Exec functionality so that it can be used with named parameters.