Integrated and ran. Result: "exception: null". Cleaned up the code a little.