Need this method for mocking.