Added getAllIds Method for Sync Handling