Added base case for getTasks