Initial set up of code etc