Added the view functions