Make it possible to supply endpoint with model