Slightly changed the code to allow reuse of operations. Still not advance on the nestes.log though.