Queue preparation