Added attr_accessor variables and included random_hex