Updated to using rustc-serialize.