Replacing functions from file field module.