Can we create an options object instead of adding a new argument?

The available options would be:

- type (defaults to null)
- relative (defaults to false)