Added original stored procedure and function templates