Updated to use stored procedure