Added functionality to dice