About to make a start on the replication loop to use the code I've managed to vomit out