Add color codes and change some apis.