Retrieve data from the server on an interval.