Waiting and priority list solution