Update the operation alogrithm