Added function for radio butons.