Added end parameter to slice to match full argument set for native library.