Create scanColors Function