Changed the lists into tuples as they shouldn't be modified.