Fix most bugs. All four methods can run now.