Not yet working, but a start.