Introduced a global init and clean-up.