Cleanup. Changed the stack frame to be a struct, rather than parallel arrays.