Implemented query comment stack. Closes #1.