Updated to use new stylesheet functionality.