Migrating the code