Working ICNBC code (need to add de-duplication code)