Import some old code