Linear curve logic added.