Add queue and stack