Implemented Update operation. Improved console output.