Note that the following functions are my test functions and not gauranteed to work
Other misc. routines