Changed salary calculation to make use of real data.