Made secondaryView optional.