Attempted to make nicer fixed point arithmetic work