Fixed warnings about unused vars and unsupported styles.