And to bypass the truncate code whenever I asked for the entire code, I just had to ask for each section separately. Though the code isn't perfect, it was a lot more easier and faster than I thought it would be.