Added parameter to set view model values on creation