Pass arguments by reference

Some optimization.