Adding code to change led colors based on mode and armed state.