Added a method that returns endpoint info.