Implemented startIndex functionality and improved tests.