Addressing reviwer feedback and adding an integration test for the stored procedure.