Updating findtask function to search for correct project