Separate UI from library.