Refactored mocking system.