Add a mechanism to simplify porting existing code.