Made refresh intervall and timeout configurable (over constants).