Endpoints constructor refactor and interation example.