Working on local file functionality