Add base domain as a flag, rather than hard coded