Corrected argument indexing and added Exception base handling (forgot to
take into account SecurityException).