Now works for some programs.