Merge some input into a struct to streamline function call
Added some struct to keep track of corruption types