Removed i to increment array, used .push() instead.