Update scanColors Function