Fixes #1166 by adding `$options` parameter