Added facilities and the ability to check for facility access in the middleware stack.