ST_ functions improvements