Wrote BuildList function, testing in progress.