Fixed grabbing math.
Merge pull request #5 from jesseniemisto/master

Fixed grabbing math.