Implemented radioState() function.