Updated to use the Cocoon gem.