Switched Parameter indexes from uint to int, and removed unncessary casting like with Locals