Got a basic version working.