Just curious, why did the previous code not work?