Add OnCommand hook