Updating the stored procedure