Added general command functionality