Convert to Yii based
Sync