When to hire a criminal defense attorney?