Added stage blocking with mutex