Added Dice module and made some things internal