Added task getting code