Working version now, but quite basic.