Producer-Consumer problem fixed.