Various code I've used plus new code I am still working on