Implemented spy factory.