Added initial set up for magic.