Got a working producer/consumer pattern working