Migrating code to sandbox