Fix build by adding slicing syntax.

I imagine this may've been written before those methods were around.