Remove useless duplicated type cast.
Add colors to logging output.