Wrap the load function.