Move viz to a require statement and simplify.