Initial commit.
Made script more modular by moving domain into a variable.