Setting up the machine