Replaced variables with array