Fixed issue where My Proprietory Algorithm was causing an infinate loop