Added print lines to figure out where it's dying