Allow passing domains as arguments (Closes #1)