- Added some function to run the algorithm