Update generic to initialize local variables
Update utils to use xreadlines