Unused vars cleanup
emulateHTTP option added