It does not appear to add a incremental number. I am probably stupid but where is the lastline variable defined ?