Adding command event