Refactored number lines setting and points setting.