Added createCommand overload.