Added API for sync