Change cache location, optimise color finding and fix region bug