Added more state function details, ANSI color output