Added factory for consumer