Adding support for number of views.