Tidied up the ArrayList. May rename to Stack?