Updated Middleware to fix customer reservation issue.