Added preference argument to filepath object.