Added refresh rate option
Bug fixing