Coin and emission variables added to core. Refactoring