Added generic get method