Fixes #10 - There are now if statements around each assignment which should check if the variable is already defined