Still need to pass the viewer for checking permissions..