Added common init to consumer main