Adding input parsing.
Adding input parsing.