File length checking was added