Revised Algorithm and notes about model implementation