Added colour-coding to state indicator