Sync

Some old codes and so on.