Adding support for view options.
Fixes #4