Added variable holding filesystem, so no need to open multiple times anymore