This modifies the options object passed to the constructor, which might not be desirable. Maybe modify a clone instead?