Use elif to make it faster.
Merge pull request #4 from dretax/master

Use elif to make it faster.