Got the basic framework up and running, now for the hard part.