Debugged

There were a LOT of issues.