Initial groundwork for gem.