You should wrap these in Try() functions in case they throw.