Removed warning by moving increment