Copy Paste Old Code

Old code from a year ago. Needs refactoring.