Reworked internal coordinate system.