Avoid splatting
Array{T,1} => Vector{T}
Avoid initializing values that are about to be overwritten