Added hook for avg fps