Changing the method of generating `result`