Added function for side index