Brought other version of loaf function to sync