Add preload function for kwen