Implemented the algorithm wout bump