Slightly hacky way of doing the list, could be done better. look into ways of improving upon this