Moving input parsing logic