Modified to use absolute path to file