Initializing from Darren's Crafty base code