Added some code for adding borders, but it is currently nonfunctional.