Implement middleware capabilities