added code to record use in table storage