Define properties based on the attribute instead of static ones.