Add max-messages option to consumer