Creating 'New Index'-Function