Adding basic viewer code