Initial work on some basic code, more to come