Made several things into variables, added delta time multiplier, and fixed a bug (was adding delta to historical time twice - oops).