Updated to handle .STLength() and .STArea(); still need to handle NULL values.