Changed box drawing and added related things to Math.