Added Consumer function. still need to implement