Renamed loop variable as frame, instead of i.