Recajiggered the script to allow for list and/or walls to be generated