Made load jobs script more robust