Define result keys as parameter