Small changes to TOLERENCE and colour difference seeking looops