Migrating code from main fog gem