Got basic viewer functionality done.