Added a domain option.
Updated views.