Changes to bank and randomgenerator