Added multi-argument support and fixed new line problems