Added get data from server functionality