Added function to check channel status.