Fixed issue with #endif in Write Command