Added option to choose whether to reload endpoints or not.