Removed SecurityException and IOException.