Added a bunch of function now needed for the pandaLight project