Fixed the average frames stuff I think, hopefully