Migrated background functionality to pere