Added initConsumer code and modified some constants in Global.java