Detention can be replaced by house arrest