Added getData method