You're right! scanFile is optional now. There's no way to specify that either one must be implemented, except for plain text documentation.