Domain support

Added some basic domain support for all the common operations.