Reading through code with direction and position.