Added docstring for record_used