Added some utils for testing.