Changed getStyle and retrieveAttributes.