Added randomqueue-functionality