Changed the getperiod and rfconfigure