Check for input/output size match here too. I hope that I didn't forget other files.