Make conversion a bit more dynamic.
Fix selection and positioning of window.