This will allow you to write a single function and set default values for different attributes.