Getting viewer working