Added 2 possible exceptions.