Updated the lfetool script with latest changes.