Implemented fit range selector window.

Primitive and simple but it works. Also needs cosmetic changes. But again:
works.