Added InputFormat for the new API.