Functions that are called for their side effects should return invisibly, e.g. invisible(writePasswordFile(path, passwords))