Implemented configuration details for multiple Components. Fixed a bug
in getIndex function.