First commit of update-lastseen script - work in progress