added mock code for router operation.