Added getData method.