I have fixed the problems with referencing the struct, since the getInput() function points to it