Refactor offsets.
Add screen coordinate conversion.