Add appendRoute and appendPCRERoute method
implement length method