Add some functions to find mask and change color.