Added some arguments
Fixed some code that could cause errors in JS Inspectors