Fixed point math. Doesn't work very well