Added variable j