Broke out task finding function
Setting up to test in deployment