Created input and output structs for simpler function signatures