Added base dir param to loops queue