Update the endpoint code
Update monitor code