Replaced endpoint to localhost