Court allows two-day custody