Fix arithmetic. Never call divide.
Prepare for lock call.