Changed Aggregator to Input-/OutputStream pattern. Changed some variable names.