Adds functionality to the end point