Update load function to protect against unknown keyword arguments.