Add queue trimming functionality, to avoid jobs from piling up.