Add constructor with file offset.