Change init and distance to use multiple lists