Adding methods to private header for unit testing.