Added line counter. Changed manual drop to better handle input.