Set up original code as gem.