Added private input handler middleware and loader options.