Tidying up link list