Finished performance analysis, added some scaling changes.