Migrating code from Fog