Slight simplification of model for handling inline styling should hopefully be more robust and accurate