Wrap dangerous code