Update file. Need optimization.