Added one more parameter for setting attribute.