Fixed an SDL inclusion bug and added energy monitoring.