Use an `options` object instead of a boolean parameter

Avoid the boolean trap! http://ariya.ofilabs.com/2011/08/hall-of-api-shame-boolean-trap.html