Added PL/SQL functions