Fixed register spillage due to passing struct by value and not by reference.