Added with for open statement