Moved getting box name to separate function