Doesn't work with linked files