Implement ecommand middleware.
0.8.125