Creating main file.