Changed: filename is now assigned locally