Removed references to Object.keys for backward compatibility.