Small tweak to the way tasks are retrieved by key.