Debugged and added character replenishment.