Added parameter checks to function view model