Some modifications to handle backslashes and forward slashes, along with some optimizations to speed up OTR generation.