A queue simulator