Changed return type of getData() to HashMap