Fix 'if' to become 'elif', to fix tag assignment bug.
Merge pull request #7 from bmhatfield/tags-fix

Fix 'if' to become 'elif', to fix tag assignment bug.