Initial GetStyles implementation, still segfaults
Fix #9306 and getStyles
Fix for segfault
GetStyles implementation