Adds commands and dirty tracking