Added revert and moved helpers into helpers.rb.