Changed ass.styles to a map instead of an array, since lookup is the main operation for styles.