Added view function call