Added prewrapper and preload function.