Implemented the first parts of list functionality.