Fixed using too much memory
Update patch
Update patch (from review comments)
Merge pull request #24 from kazupon/patch-1

Fixed using too much memory