Adding methods to change refresh_interval and optimize