Added depth buffer stuff. Not used too much yet