Adding some testing functions