change parameter Name "Stack" to "Queue", and debug it.