Reduced the number of parameters for certain methods.
Avoid passing entire arrays when only a few elements are needed.