Used to_s directly, key assignment simplified