Code for lists and invalid addresses