Move all code into our self-executing function