Optimise clearance of pending queue