Fix mutable argument.
Enable setting stdin for command.
Fix accepting buffer in stdin.