Added timeout to consumer.