Changed progs in open and updated loop for playback