Add queue detection