Refactored name generation to make more 'python-esque' (slicing syntax)