Added new change algorithm