Adding missing code that includes values from custom styles.