Input parsing works