Removing unused code that was causing errors.