Add source map and finish port.