When you make a search of premises under authority of a search warrant, it is generally permissible to detain the occupants pending completion of the search. The authority to do so, and the rationale supporting detention, were limited by a 2013 decision.