Prepared for unittests.