Cleaned up the GetTransparentSurface Function