Slowly porting over the old code here, which will become the sole runtime dependency.