Tweak API to add file extensions