Changes in middleware