integration with algorithm added.