Add function for file..