Add queue statement support. Fixes #11