Miscellaneous code to test random stuff