Turn this into a gem.