Add snagJob function and related imports