Added method parameters for input arrays and value