Made the max charge changable in config.