Simple testing code for various uses