Refactored out addition operation.