Moved from neolib.