Updated to support btsync backend