Add colors to messages. and some error checking logics.