Added check for terminal column width.