Replaced last method from Main with a real endpoint