Update the 'fs' function