Added input tests and parsing.