Added component addition code, not working