What are the two types of custody?