Initial code drop. Basic model sketched out, discovery implemented.