Needed to include headers and remove a piece of bad code