Added one-shot listening. Closes #5