Added middleware for express