Adjusted default parameters to defaults in function.