Spike showing how to change endpoints dynamically.