Added modifier to dice and removed some of the unused imports.