Setting up boxes and importing weights