Make getTodoLists a separate function