Cleaned a bit the messy code of confirm