Added default values for all parameters and testing for being set.