Input parsing.
Removed some prints.