Add some attributes.

Signed-off-by: Dawei Yang <davy.pristina@gmail.com>
Refactor and modify.

Signed-off-by: Dawei Yang <davy.pristina@gmail.com>
ARSC comparator.