Confessions are inadmissible in federal court when they are obtained in violation of the Federal Rules of Criminal Procedure 5, which indicates that “A person making an arrest within the United States must take the defendant without unnecessary delay before a magistrate judge, or before a state or local judicial officer as Rule 5(c) provides, unless a statute provides otherwise.” If you confessed to the crime after being arrested and before being taken before a judge, your attorney may be able to get the confession thrown out.