Changed 'file' to 'fp'