Transferred foreground/background initialization to engine_init_sets.
Added semantic spacing.