Farting about with some quote replacement stuff. Feel free to tell me I'm stupid, but this shit seems to work.