Move options to defaults to let users set options by passing an object.