Added protection if files/modules do not exist.