Using RPOP instead of BRPOP.