Moving refresh period to config file