More code that hasn't been run yet - for now just dumping code and ideas.