I wonder if it would be faster to use a pointer here...