Color coded msg funciton and network delay function implemented