Reads data from server