Additional adjustments in the script for the no text case