Always check the CRC or SHA-256 hash of the combined file before processing.

To give you a better "feature development" plan, could you tell me: What are you using?

Often found on support sites for legacy hardware.