Added code for each operation.