Added boxsize variable.