Adds safe indexing and jlTolist for testing