Migrated logic out of view is done!