Added threeDHandler and cleaned up some errors.