Updated import details; list index out of range in line 42