Finally working as it should now it's time to create the script to run changing the variables.