Changed inport statements to reduce memory overhead