Added friend function sync to replace friend cron