Maintaining the integrity of the chain of custody for evidence