Began testing, lots of debugging