Added slicing, and fixed imports.