Add function for work with files