Just a bit of preparation code.