Partition scripts inside attribute_state method.