Added file output and math consts