Added function needed for setup of standalone unit tests.