File API tweaks.