Added code of operations logic