Add ioslength definition to second let block