Adds domain helper function.