Changed local pointer name to 'data' for clarification purposes.