Some code to fetch models from server.