Converted parsing middleware to Connect 3.0