Do not add node to queue if pushed.

Fixes #33.