Tidying up. Making the defaults variables defined in one place rather than scattered throughout the script