Undefined variable: offset error
Merge pull request #5 from mtkocak/master

Undefined variable: offset error