Removed key_value reference due to Rails 4 incompatibility