Updated to system_cost script based on interview with matt.