Brought previewer to PEP-8, and reduced the complexity significantly.