First part of InputParser