Added require
Fixed require and added stub wrapper code.