Added clone library. Clone attributes instead of referencing. Compare each field in attributes.