Correctly access platform data via function argument.