Added some testing functions