Remove unsafe

Fixes issue #38.