Condensed optional parameters into an options object.