Added speed to file input.