Added the ability to interface with the YAML and JSON via middleware, and disable the writing to a destination file