Improve strings and functions reading
Add a while statement