Implemented thread safety and queueing in Confirmations. + Some other fixing of it

CE-401 should be fixed now