Max plot working, k-inf and mean still not for some reason