Modified into semi-working state (output is garbage).