Merge pull request #28 from ryanslade/reduce-allocations

Reduce allocations