Splited calculation into separate file.