Fixed stupid error in time resampling thingy. And stuff.