Added colour table map function.