Changed ainject to take programs.