Method for adding commands