Simplification of coins code.