Use options object instead of multiple arguments